package ch3;

import java.util.Scanner;

public class CalcTest {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("请输入张浩语文和数学成绩：");
		int ch = in.nextInt();
		int math = in.nextInt();
		System.out.println("语文：" + ch + ",数学：" + math);
		Calculator c = new Calculator();
		int avg = c.calcAvg(ch, math);
		System.out.println("语文：" + ch + ",数学：" + math);
		System.out.println("平均分是：" + avg);
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");

	}

}
